package jdklearning.math;


import java.math.BigDecimal;

public class BigDecimalLearning {

	public static void main(String[] args) {
		double d1 = 2.65;
		long l1 = new BigDecimal(d1).multiply(new BigDecimal(100)).setScale(2, BigDecimal.ROUND_CEILING).longValueExact();
		long l2 = new BigDecimal(d1).multiply(new BigDecimal(100)).longValue();
		System.out.println(l1);
		System.out.println(l2);
		
	}
}
